package com.wn.pettyloan.mapper;

import com.wn.pettyloan.dto.ProductDto;
import com.wn.pettyloan.entity.Product;
import com.wn.pettyloan.vo.ProductVo;

import java.util.List;

/**
* @author mi-xu
* @description 针对表【product】的数据库操作Mapper
* @createDate 2022-12-06 13:35:49
* @Entity com.wn.pettyloan.entity.Product
*/
public interface ProductMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectAll();

    List<Product> selectByLike(ProductDto productDto);

    int audit(Product record);

    Product selectByName(String name);

    Product ProductFound(String name);


    List<ProductVo> exportExcel(ProductDto productDto);
}
